package com.hopedove.workshop.data.pojo

import androidx.databinding.ObservableField
import androidx.databinding.ObservableInt

data class ObservableRecordItem(
    val type: String,
    val machine: String,
    val remark: ObservableField<String> = ObservableField(""),
    val reason: ObservableField<String> = ObservableField(""),
    val duration: ObservableField<String> = ObservableField(""),
    val groupNo: String = "",
    val id: String = "",
    val index: String = "",
    val planTypes: List<String>,
    val planTypeSelection: ObservableInt = ObservableInt(-1),
) {

    fun allObservableFieldIsEmpty(): Boolean {
        return remark.get().isNullOrEmpty()
                && reason.get().isNullOrEmpty()
                && duration.get().isNullOrEmpty()
    }
}




